package cn.com.utt.unms.vo;

import cn.com.utt.unms.pojo.Wireless;
import cn.com.utt.unms.pojo.Ssid;

public class WirelessInfo {
	
	private Long id;
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Long getSsidId() {
		return ssidId;
	}

	public void setSsidId(Long ssidId) {
		this.ssidId = ssidId;
	}

	public String getSsidName() {
		return ssidName;
	}

	public void setSsidName(String ssidName) {
		this.ssidName = ssidName;
	}

	public Integer getVid() {
		return vid;
	}

	public void setVid(Integer vid) {
		this.vid = vid;
	}

	public Byte getMainUses() {
		return mainUses;
	}

	public void setMainUses(Byte mainUses) {
		this.mainUses = mainUses;
	}

	public Byte getSecType() {
		return secType;
	}

	public void setSecType(Byte secType) {
		this.secType = secType;
	}

	public Integer getRxrate() {
		return rxrate;
	}

	public void setRxrate(Integer rxrate) {
		this.rxrate = rxrate;
	}

	public Integer getTxrate() {
		return txrate;
	}

	public void setTxrate(Integer txrate) {
		this.txrate = txrate;
	}

	private String name;
	private Long ssidId;
	private String ssidName;
	private Integer vid;
	private Byte mainUses;
	private Byte secType;
	private Integer rxrate;
	private Integer txrate;
	private Long wirelessId;
	private long index;
	private Integer encode;
	private byte hide;
	private String bssid = "";
	private byte mode;
	private byte portalAuth;
	private byte wepEncryptionMode;
	private byte wepKeyFormat;
	private byte wepKeyIndex;
	private byte wepEncryptionLevel;
	private String wepKeyPassphrase;
	private byte wpaVersion;
	private byte wpaEncryptionMode;
	private String wpakey;
	private int wpakeyUpdateInterval;
	private String radiusServer;
	private int radiusPort;
	private String radiusKey;
	private byte broadcastFilter;
	private byte dtimInterval;
	private byte multicastOp;
	private byte dynamicOp;
	private byte dmoThreshold;
	private byte g24MinRate;
	private byte g24MaxRate;
	private byte g5MinRate;
	private byte g5MaxRate;
	private byte emptyPortOp;
	private byte perWirelessOp;
	private byte bgVmmShare;
	private byte effVmmShare;
	private byte videoVmmShare;
	private byte voiceVmmShare;
	private byte contentFilter;
	private byte freqChannel;
	private long inactiveTimeout;
	private long maxConn;
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	private String password;
	public byte getClientIsolation() {
		return clientIsolation;
	}

	public void setClientIsolation(byte clientIsolation) {
		this.clientIsolation = clientIsolation;
	}

	private long probeReqLimit;
	private byte clientIsolation;

	public void convert(Wireless wireless,Ssid ssid) {
		this.id = wireless.getId();
		this.name = wireless.getName();
		this.ssidId = ssid.getId();
		this.ssidName = ssid.getName();
		this.vid = ssid.getVid();
		this.mainUses = ssid.getMainUses();
		this.secType = ssid.getSecType();
		this.rxrate = ssid.getRxrate();
		this.txrate = ssid.getTxrate();
		this.wirelessId = ssid.getWirelessId();
		this.index = ssid.getIndex();
		this.encode = ssid.getEncode();
		this.hide = ssid.getHide();
		this.bssid = ssid.getBssid();
		this.mode = ssid.getMode();
		this.portalAuth = ssid.getPortalAuth();
		this.wepEncryptionMode = ssid.getWepEncryptionMode();
		this.wepKeyFormat = ssid.getWepKeyFormat();
		this.wepKeyIndex = ssid.getWepKeyIndex();
		this.wepEncryptionLevel = ssid.getWepEncryptionLevel();
		this.wepKeyPassphrase = ssid.getWepKeyPassphrase();
		this.wpaVersion = ssid.getWpaVersion();
		this.wpaEncryptionMode = ssid.getWpaEncryptionMode();
		this.wpakey = ssid.getWpakey();
		this.wpakeyUpdateInterval = ssid.getWpakeyUpdateInterval();
		this.radiusServer = ssid.getRadiusServer();
		this.radiusPort = ssid.getRadiusPort();
		this.radiusKey = ssid.getRadiusKey();
		this.broadcastFilter = ssid.getBroadcastFilter();
		this.dtimInterval = ssid.getDtimInterval();
		this.multicastOp = ssid.getMulticastOp();
		this.dynamicOp = ssid.getDynamicOp();
		this.dmoThreshold = ssid.getDmoThreshold();
		this.g24MinRate = ssid.getG24MinRate();
		this.g24MaxRate = ssid.getG24MaxRate();
		this.g5MinRate = ssid.getG5MinRate();
		this.g5MaxRate = ssid.getG5MaxRate();
		this.emptyPortOp = ssid.getEmptyPortOp();
		this.perWirelessOp = ssid.getPerWirelessOp();
		this.bgVmmShare = ssid.getBgVmmShare();
		this.effVmmShare = ssid.getEffVmmShare();
		this.videoVmmShare = ssid.getVideoVmmShare();
		this.voiceVmmShare = ssid.getVoiceVmmShare();
		this.contentFilter = ssid.getContentFilter();
		this.freqChannel = ssid.getFreqChannel();
		this.inactiveTimeout = ssid.getInactiveTimeout();
		this.maxConn = ssid.getMaxConn();
		this.probeReqLimit = ssid.getProbeReqLimit();
		this.clientIsolation = ssid.getClientIsolation();
		switch (secType) {
		case 0:
			this.password = "";
			break;
		case 1:
			this.password = this.wepKeyPassphrase;
			break;
		case 2:
			this.password = this.radiusKey;
			break;
		case 3:
			this.password = this.wpakey;
			break;
		default:
			this.password = "";
			break;
		}
	}

	public long getIndex() {
		return index;
	}

	public void setIndex(long index) {
		this.index = index;
	}

	public byte getHide() {
		return hide;
	}

	public void setHide(byte hide) {
		this.hide = hide;
	}

	public String getBssid() {
		return bssid;
	}

	public void setBssid(String bssid) {
		this.bssid = bssid;
	}

	public byte getMode() {
		return mode;
	}

	public void setMode(byte mode) {
		this.mode = mode;
	}

	public byte getPortalAuth() {
		return portalAuth;
	}

	public void setPortalAuth(byte portalAuth) {
		this.portalAuth = portalAuth;
	}

	public byte getWepEncryptionMode() {
		return wepEncryptionMode;
	}

	public void setWepEncryptionMode(byte wepEncryptionMode) {
		this.wepEncryptionMode = wepEncryptionMode;
	}

	public byte getWepKeyFormat() {
		return wepKeyFormat;
	}

	public void setWepKeyFormat(byte wepKeyFormat) {
		this.wepKeyFormat = wepKeyFormat;
	}

	public byte getWepKeyIndex() {
		return wepKeyIndex;
	}

	public void setWepKeyIndex(byte wepKeyIndex) {
		this.wepKeyIndex = wepKeyIndex;
	}

	public byte getWepEncryptionLevel() {
		return wepEncryptionLevel;
	}

	public void setWepEncryptionLevel(byte wepEncryptionLevel) {
		this.wepEncryptionLevel = wepEncryptionLevel;
	}

	public String getWepKeyPassphrase() {
		return wepKeyPassphrase;
	}

	public void setWepKeyPassphrase(String wepKeyPassphrase) {
		this.wepKeyPassphrase = wepKeyPassphrase;
	}

	public byte getWpaVersion() {
		return wpaVersion;
	}

	public void setWpaVersion(byte wpaVersion) {
		this.wpaVersion = wpaVersion;
	}

	public byte getWpaEncryptionMode() {
		return wpaEncryptionMode;
	}

	public void setWpaEncryptionMode(byte wpaEncryptionMode) {
		this.wpaEncryptionMode = wpaEncryptionMode;
	}

	public String getWpakey() {
		return wpakey;
	}

	public void setWpakey(String wpakey) {
		this.wpakey = wpakey;
	}

	public int getWpakeyUpdateInterval() {
		return wpakeyUpdateInterval;
	}

	public void setWpakeyUpdateInterval(int wpakeyUpdateInterval) {
		this.wpakeyUpdateInterval = wpakeyUpdateInterval;
	}

	public String getRadiusServer() {
		return radiusServer;
	}

	public void setRadiusServer(String radiusServer) {
		this.radiusServer = radiusServer;
	}

	public int getRadiusPort() {
		return radiusPort;
	}

	public void setRadiusPort(int radiusPort) {
		this.radiusPort = radiusPort;
	}

	public String getRadiusKey() {
		return radiusKey;
	}

	public void setRadiusKey(String radiusKey) {
		this.radiusKey = radiusKey;
	}

	public byte getBroadcastFilter() {
		return broadcastFilter;
	}

	public void setBroadcastFilter(byte broadcastFilter) {
		this.broadcastFilter = broadcastFilter;
	}

	public byte getDtimInterval() {
		return dtimInterval;
	}

	public void setDtimInterval(byte dtimInterval) {
		this.dtimInterval = dtimInterval;
	}

	public byte getMulticastOp() {
		return multicastOp;
	}

	public void setMulticastOp(byte multicastOp) {
		this.multicastOp = multicastOp;
	}

	public byte getDynamicOp() {
		return dynamicOp;
	}

	public void setDynamicOp(byte dynamicOp) {
		this.dynamicOp = dynamicOp;
	}

	public byte getDmoThreshold() {
		return dmoThreshold;
	}

	public void setDmoThreshold(byte dmoThreshold) {
		this.dmoThreshold = dmoThreshold;
	}

	public byte getG24MinRate() {
		return g24MinRate;
	}

	public void setG24MinRate(byte g24MinRate) {
		this.g24MinRate = g24MinRate;
	}

	public byte getG24MaxRate() {
		return g24MaxRate;
	}

	public void setG24MaxRate(byte g24MaxRate) {
		this.g24MaxRate = g24MaxRate;
	}

	public byte getG5MinRate() {
		return g5MinRate;
	}

	public void setG5MinRate(byte g5MinRate) {
		this.g5MinRate = g5MinRate;
	}

	public byte getG5MaxRate() {
		return g5MaxRate;
	}

	public void setG5MaxRate(byte g5MaxRate) {
		this.g5MaxRate = g5MaxRate;
	}

	public byte getEmptyPortOp() {
		return emptyPortOp;
	}

	public void setEmptyPortOp(byte emptyPortOp) {
		this.emptyPortOp = emptyPortOp;
	}

	public byte getPerWirelessOp() {
		return perWirelessOp;
	}

	public void setPerWirelessOp(byte perWirelessOp) {
		this.perWirelessOp = perWirelessOp;
	}

	public byte getBgVmmShare() {
		return bgVmmShare;
	}

	public void setBgVmmShare(byte bgVmmShare) {
		this.bgVmmShare = bgVmmShare;
	}

	public byte getEffVmmShare() {
		return effVmmShare;
	}

	public void setEffVmmShare(byte effVmmShare) {
		this.effVmmShare = effVmmShare;
	}

	public byte getVideoVmmShare() {
		return videoVmmShare;
	}

	public void setVideoVmmShare(byte videoVmmShare) {
		this.videoVmmShare = videoVmmShare;
	}

	public byte getVoiceVmmShare() {
		return voiceVmmShare;
	}

	public void setVoiceVmmShare(byte voiceVmmShare) {
		this.voiceVmmShare = voiceVmmShare;
	}

	public byte getContentFilter() {
		return contentFilter;
	}

	public void setContentFilter(byte contentFilter) {
		this.contentFilter = contentFilter;
	}

	public byte getFreqChannel() {
		return freqChannel;
	}

	public void setFreqChannel(byte freqChannel) {
		this.freqChannel = freqChannel;
	}

	public long getInactiveTimeout() {
		return inactiveTimeout;
	}

	public void setInactiveTimeout(long inactiveTimeout) {
		this.inactiveTimeout = inactiveTimeout;
	}

	public long getMaxConn() {
		return maxConn;
	}

	public void setMaxConn(long maxConn) {
		this.maxConn = maxConn;
	}

	public long getProbeReqLimit() {
		return probeReqLimit;
	}

	public void setProbeReqLimit(long probeReqLimit) {
		this.probeReqLimit = probeReqLimit;
	}

	public Long getWirelessId() {
		return wirelessId;
	}

	public void setWirelessId(Long wirelessId) {
		this.wirelessId = wirelessId;
	}

	public Integer getEncode() {
		return encode;
	}

	public void setEncode(Integer encode) {
		this.encode = encode;
	}

}
